package com.qf.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "药品信息实体")
@TableName("drug_info")
public class DrugInfo extends Model<DrugInfo> {
    //药品唯一标识符
    @ApiModelProperty(name="id", value="药品id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "coverImg", value = "封面图片")
    private String coverImg; // 封面

    @ApiModelProperty(name = "drugName", value = "药品名称")
    private String drugName; // 药品名称

    @ApiModelProperty(name = "foreignName", value = "外文名")
    private String foreignName; // 外文名

    @ApiModelProperty(name = "alias", value = "别名")
    private String alias; // 别名

    @ApiModelProperty(name = "isPrescription", value = "是否处方药")
    private boolean isPrescription; // 是否处方药

    @ApiModelProperty(name = "specification", value = "规格")
    private String specification; // 规格

    @ApiModelProperty(name = "applicableRange", value = "适用范围")
    private String applicableRange; // 适用范围

    @ApiModelProperty(name = "functionIndication", value = "功能主治")
    private String functionIndication; // 功能主治

    @ApiModelProperty(name = "nature", value = "性状")
    private String nature; // 性状

    @ApiModelProperty(name = "adverseReaction", value = "不良反应")
    private String adverseReaction; // 不良反应

    @ApiModelProperty(name = "contraindication", value = "禁忌")
    private String contraindication; // 禁忌

    @ApiModelProperty(name = "storage", value = "贮藏方式")
    private String storage; // 贮藏方式

    @ApiModelProperty(name = "pharmacy", value = "所属药厂")
    private String pharmacy;

    @ApiModelProperty(name = "createTime", value = "创建时间")
    private String createTime;// 创建时间

    @ApiModelProperty(name = "updateTime", value = "更新时间")
    // 更新时间
    private String updateTime;

}

